object AmbarToplamlariF: TAmbarToplamlariF
  Left = 365
  Top = 121
  BorderStyle = bsSingle
  Caption = 'Ambar Toplamlar'#305
  ClientHeight = 383
  ClientWidth = 291
  Color = clBtnFace
  Font.Charset = TURKISH_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Arial'
  Font.Style = []
  KeyPreview = True
  OldCreateOrder = False
  Position = poMainFormCenter
  OnClose = FormClose
  OnCreate = FormCreate
  OnKeyPress = FormKeyPress
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 14
  object bkapat: TBitBtn
    Left = 216
    Top = 352
    Width = 73
    Height = 25
    Caption = 'Kapat'
    TabOrder = 0
    OnClick = bkapatClick
  end
  object wwDBGrid1: TwwDBGrid
    Left = 0
    Top = 0
    Width = 287
    Height = 341
    DisableThemes = False
    Selected.Strings = (
      'DepoAdi'#9'20'#9'DepoAdi'#9#9
      'miktar'#9'10'#9'Stok'#9'F'
      'unitymiktar'#9'10'#9'Unity Stok'#9'F')
    IniAttributes.Delimiter = ';;'
    TitleColor = clBtnFace
    FixedCols = 0
    ShowHorzScrollBar = True
    DataSource = AmbarToplamlariQS
    KeyOptions = [dgEnterToTab]
    Options = [dgEditing, dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit, dgWordWrap]
    TabOrder = 1
    TitleAlignment = taLeftJustify
    TitleFont.Charset = TURKISH_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'Arial'
    TitleFont.Style = []
    TitleLines = 1
    TitleButtons = False
    UseTFields = False
    OnCalcCellColors = wwDBGrid1CalcCellColors
  end
  object AmbarToplamlariQ: TADOQuery
    Connection = dm.connect
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    Parameters = <
      item
        Name = 'Stokkod'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end
      item
        Name = 'Stokkod2'
        Attributes = [paSigned, paNullable]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    SQL.Strings = (
      'Select Unityid,DepoAdi,'
      
        '       miktar=isnull((Select gstok-isnull(rstok,0) from StokTaki' +
        'p WITH(NOLOCK) where Stokkod=:Stokkod and StokTakip.depokod=depo' +
        'lar.id),0),'
      
        '       isnull((Select TOP 1 MIKTAR from WW_Ent_Stok_Miktar where' +
        ' CODE=(SELECT Stokkodu FROM STOK WITH(NOLOCK) WHERE Stokkod=:Sto' +
        'kkod2) and INVENNO=depolar.Unityid),0) as unitymiktar'
      'from depolar '
      'Where Aktif=1')
    Left = 168
    Top = 48
  end
  object AmbarToplamlariQS: TDataSource
    DataSet = AmbarToplamlariQ
    Left = 56
    Top = 48
  end
  object UnityAmbarToplamlariQ: TADOQuery
    Connection = dm.Connect_Unity
    CursorType = ctStatic
    LockType = ltReadOnly
    Parameters = <>
    Left = 56
    Top = 104
  end
end
